package com.ruoyi.model.category;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 对象 web_category
 *
 * @author 张怀秋
 * @date 2024-03-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("web_category")
@Accessors(chain = true)
public class Category extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 分类名称
     */
    @Excel(name = "分类名称")
    private String categoryName;

    /**
     * 父级id
     */
    @Excel(name = "父级id")
    private String parentId;

    /**
     * 分类描述
     */
    @Excel(name = "分类描述")
    private String description;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    @TableField(exist = false)
    private List<Category> children;

    /**
     * 逻辑删除
     */
    @Excel(name = "逻辑删除")
    @TableLogic
    private String isDel;

}
